/*
 * @Author: chengjiang
 * @Date: 2024-10-31 10:46:46
 * @Description: 
 */
import router from './index'


// 白名单页面直接进入
const whiteList = ['/login']
console.log(whiteList)

// router.beforeEach((to, from, next) => {
//   const requiresAuth = to.matched.some(record => record.meta.requiresAuth);
//   console.log('路由监听')
//   if (requiresAuth && !isAuthenticated()) {
//     next({ name: 'Login' });
//   } else {
//     next();
//   }
// })

router.afterEach(() => {
  // finish progress bar
  //   NProgress.done()
})

